package com.wangp.demo.anno.processor;

/**
 * @author <a href="mailto:wangpeng@i-baby.com" rel="nofollow">wp☠😘✨</a>
 * @version 0.0.1
 * @since 2025/8/16 15:41
 */
public class ExceptionUtils {

    public static RuntimeException wrap(Throwable t) {
        if (t instanceof RuntimeException e) {
            return e;
        }
        return new RuntimeException(t.getMessage(), t);
    }
}
